package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三", 25, "廊坊", "jsd2302", "001");
        zs.eat();
        zs.sleep();
        zs.sayhi();
        zs.study();

        Teacher ls = new Teacher("累死i", 22, "北京", 220);
        ls.eat();
        ls.sleep();
        ls.sayhi();
        ls.teacher();

        Doctor ww = new Doctor("王五", 10, "上海", "铍铜");
        ww.eat();
        ww.sleep();
        ww.sayhi();
        ww.doctor();

    }
}
